package com.shengyuan.manage_os.old.ying.erpm.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;


public class Table_form1 {
	private Dao_db data;

	public Table_form1(Context context) {
		data = new Dao_db(context);
	}

	public int Save_Data(String form_type, String json, String user) {
		SQLiteDatabase db = data.getWritableDatabase();
		String sql = "INSERT INTO " + data.Table_actual_form
				+ "(form_type, json, user, readed, printed) VALUES(?,?,?,0,0)";
		db.execSQL(sql, new Object[] {form_type, json, user });
		db.close();
		return 0;
	}
}
